package com.inspur.xiaoju.service;

import com.inspur.xiaoju.dto.CreateSurveyDto;
import com.inspur.xiaoju.model.Survey;

import java.util.List;
import java.util.Map;

public interface SurveyService {
    Survey create(CreateSurveyDto createSurveyDto, String creatorId, String creator);
    Survey findById(String id);
    Survey findBySurveyPath(String surveyPath);
    List<Survey> findByWorkspaceId(String workspaceId);
    List<Survey> findByCreatorId(String creatorId);
    Survey update(String id, Map<String, Object> updates);
    void delete(String id);
    Survey updateStatus(String id, String status);
}